<template>
  <div class="after-sales-allowance-wrap">
    <div class="top-wrap">
      <div class="total-allowance-wrap">
        <div class="allowance-label">售后津贴合计 (元)</div>
        <div class="allowance-amount">2280.00</div>
      </div>
      <div class="trans-in-allowance" @click="transInAllowance">
        转入至奖励金
      </div>
    </div>
    <div class="list-wrapper">
      <div class="list-nav">
        <span>售后津贴明细</span>
      </div>
      <ul>
        <li
          style="border-top: 1px solid #F0F0F0; background: #fff; padding: 0.24rem"
        >
          <div
            style="font-size: 12px; display: flex; justify-content: space-between"
          >
            <span class="bounty-type">订单退款</span>
            <span class="amount-text">+15.00</span>
          </div>
          <div
            style="font-size: 12px; display: flex; justify-content: space-between"
          >
            <span style="color: #999999">订单号</span>
            <span class="time">2019-06-10</span>
          </div>
        </li>
      </ul>
    </div>
    <van-dialog
      v-model="show"
      title="是否转入至奖励金"
      show-cancel-button
      confirm-button-color="#333333"
      cancel-button-color="#666666"
    >
      <div class="dialog-content">
        <span style="color: #E62525">99.89元</span>售后津贴将转入至奖励金
      </div>
    </van-dialog>
  </div>
</template>

<script>
export default {
  name: 'afterSalesAllowance',
  data() {
    return {
      show: false
    };
  },
  methods: {
    transInAllowance() {
      this.show = true;
    }
  }
};
</script>

<style lang="scss" scoped>
.after-sales-allowance-wrap {
  background: #f5f5f5;
  min-height: 100vh;
  .top-wrap {
    height: 3.54rem;
    background: #fff;
    .total-allowance-wrap {
      padding-top: 0.64rem;
      padding-bottom: 0.4rem;

      .allowance-label {
        font-size: 0.26rem;
        font-weight: 400;
        color: rgba(153, 153, 153, 1);
        text-align: center;
      }
      .allowance-amount {
        font-size: 0.64rem;
        font-weight: bold;
        color: #333333;
        text-align: center;
      }
    }
    .trans-in-allowance {
      width: 3.04rem;
      height: 0.88rem;
      border: 1px solid #e62525;
      color: #e62525;
      font-size: 0.28rem;
      font-weight: 500;
      margin: 0 auto;
      text-align: center;
      line-height: 0.88rem;
      border-radius: 22px;
    }
  }
  .list-wrapper {
    margin-top: 0.2rem;
    .list-nav {
      height: 0.92rem;
      background: rgba(255, 255, 255, 1);
      font-size: 0.26rem;
      line-height: 0.92rem;
      padding: 0 0.24rem;
    }

    .bounty-type {
      font-size: 0.28rem;
      font-weight: 400;
      color: #333333;
    }

    .amount-text {
      font-size: 0.36rem;
      font-weight: bold;
      color: rgba(230, 37, 37, 1);
    }
    .time {
      font-size: 0.2rem;
      font-weight: 400;
      color: rgba(153, 153, 153, 1);
    }
  }
  .dialog-content {
    width: 4.5rem;
    margin: 0.2rem auto;
    font-size: 0.28rem;
    color: #666666;
    text-align: center;
  }
}
</style>
